//SamXIAO
#include <bits/stdc++.h>
using namespace std;
#define PI 3.1415926
#define   SQUARE(x) ((x)*(x))
//double SQUARE(double x) { return x*x;}
#define N_MAX 987654321
#define N_MIN -N_MAX
int f[20086];
int cnt[20086];

void w1()
{
	int n, x, cnt = 0;
	scanf("%d", &n);
	for(int i=0; i<n; i++){
		scanf("%d", &x);
		bool isFound = false;
		for(int j=0; j<cnt; j++){
			if(f[j] == x){
				isFound = true;
				break;
			}
		}
		if(!isFound) {
			f[cnt] = x;
			cnt++;
		}
  }
	for(int i=0; i<cnt; i++){
		printf("%d ", f[i]);
  }
}

int main()
{
	w1();
  return 0;
}
